<%@ include file="/platform/common/head.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html style="height: 36px;">
<head>
    <title>在线文档</title>
    <meta charset="UTF-8">
    <%--<meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">--%>
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <style>
        #pageoffice-download-link {
            text-align: center;
            font-size: 14px;
            line-height: 30px;
            display: inline-block;
        }
        div.pt-dictionary{max-width: 100% !important; width: auto !important; }
        span{display: block; text-align: left;}
        span.ui-select-match{width: 100%;}
        span.ui-select-match-item{width: 100% !important;}
        span.ui-select-match-item span img{float: left}
        span.ui-select-match-item span{width: auto !important;}
        .ui-select-multiple.ui-select-bootstrap{padding: 0;margin: 3px 3px 0;}
        .pt-dictionary .multiple-select.ui-select-container{padding-left: 0 !important;}
        .ui-select-match-item .ng-binding{display: block !important; max-width: 900px !important;}
    </style>
</head>
<body ng-init="YWID='${param.businessId}';LXDM='${param.lxdm}';ZLXDM='${param.zlxdm}';DOMID='${param.domId}';isExist='${param.isExist}';readOnly='${param.readOnly}'"
      style="height: 100%;">
<div ng-app="myApp" ng-init="checkPageOfficeInsert()" ng-controller="openOfficeController">
    <div>
        <div style="display: inline-block;max-width: 85%;height: 35px; overflow: hidden;">
            <div upload-file-simplify ng-config="uploadConfig" ng-uploader="uploader" select-tip="请上传正文"></div>
        </div>
        <div style="display: inline-block;width: 100px; vertical-align: top;margin-top: 5px;">
            <div  ng-show="isExist =='true'" style="display: inline-block;">
                <button type="button" id="btn_upload_upload"
                        class="btn btn-default import btn-sm" ng-click="openOnLineEditPage()">
                    在线查看
                </button>
            </div>
            <div id="pageoffice-download-link">
                <a target="_blank"
                   href="<common:webRoot/>/resources/help/posetup.exe">下载PageOffice插件</a>
            </div>
        </div>
    </div>

</div>
</body>
<script type="text/javascript"
        src="<common:webRoot/>/resources/platform/common/component/pageoffice/pageoffice.js?v=${sysversion}"></script>
<script type="text/javascript"
        src="<common:webRoot/>/resources/platform/js/onlineDocumentRead.js?v=${sysversion}"></script>
</html>
